{extend name="web/public/base" /}
{block name="header"}
{/block}
{block name="main"}
<section class="scrollable padder">
    <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
        <li><a><i class="fa fa-home"></i> 首页</a></li>
        <!--<li class="active">市场管理</li>-->
        <li class="active">{$title}</li>
    </ul>
    <div class="row">
        <div class="col-sm-12">

            <section class="panel panel-default">
                <header class="panel-heading"> {$title}</header>
                <!--<footer class="panel-footer">-->
                    <!--<div class="row">-->
                        <!--<div class="text-right text-center-xs">-->
                            <!--{$page}-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</footer>-->
                {include file="web/public/search" /}
                {notempty name="_list"}
                <div class="table-responsive">
                    <table class="table table-striped table-hover b-t b-light text-sm">
                        <thead>
                        <tr style="cursor:pointer;">
                            <th width="200px" onclick="sort('user_num',this)" class="th-sortable active"
                                data-toggle="class">时间 <span class="th-sort"> </span>
                            </th>
                            <th>报单商品名称及数量</th>
                            <th>复消商品名称及数量</th>
                        </tr>
                        </thead>
                        <tbody>
                        {volist name='_list' id='vo'}
                        <tr>
                            <td>{$vo.id}</td>
                            <td>{$vo.name1}</td>
                            <td>{$vo.name2}</td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                </div>
                <footer class="panel-footer">
                    <div class="row">
                        <div class="text-right text-center-xs">
                            {$page}
                        </div>
                    </div>
                </footer>
                {else/}
                <div style="text-align: center">
                    <image src="__PUBLIC__/images/empty.jpg"></image>
                </div>
                {/notempty}
            </section>
        </div>
    </div>
</section>
{/block}
{block name="footer"}
<script type="text/javascript">
    function delGoods(id) {
        layer.confirm('确定要删除吗?', function () {
            $.post("{:url('delGoods')}", {id: id}, function (data) {
                layer.msg(data.msg);
                location.href = data.url;
            }, 'json');
        })
    }
</script>
{/block}